package org.javaboy.listener_demo.listener;

import org.javaboy.listener_demo.event.User;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

@Component
public class MyListener02 {

    @EventListener(User.class)
    public void handleUser(User user) {
        System.out.println("user = " + user);
    }
}
